/**
 * 关于一些常量的配置
 * Created by yzb2b on 15-1-21.
 */
    exports.HOST_IP='192.168.200.35';//服务器IP地址
    exports.HOST_PORT='9898';//端口号
    exports.METHOD_GET='GET';//get请求方式
    exports.METHOD_POST='POST';//post请求方式
    exports.METHOD_DELETE='DELETE';//delete请求方式
    exports.METHOD_PUT='PUT';//put请求方式
    exports.STATECODE_200='200';//状态码200
    exports.STATECODE_500='500';//状态码500
    exports.STATECODE_404='404';//状态码404
    exports.PATH_UPLOAD='./upload/';//文件上传保存路径
    exports.REQ_URL='/login,/users';//规则：每个路径需以‘,’隔开
    exports.HOST_REDIS="192.168.31.210";
    //exports.HOST_REDIS="127.0.0.1";
    exports.REQUEST_OPTION=function(path,method,ip,port){
        return {
            host : ip || this.HOST_IP,
            port:  port || this.HOST_PORT,
            path : path,
            method : method || this.METHOD_POST
        };
    }


